import "./public-path";
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import { createPinia } from "pinia";
import { changeTheme } from "./utils/theme";

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import "dayjs/locale/zh-cn";
import "@/assets/iconfont/iconfont.css";

import SlzqUi from "slzq-ui";
import "slzq-ui/style.css";

import components from "@/components";
import "@/components/SvgIcon/importSvg";

import "@/router/permission";

import plugins from "./plugins";

import directives from "@/directives";

changeTheme();

const app = createApp(App);
app
  .use(createPinia())
  .use(router)
  .use(ElementPlus, { locale: zhCn })
  .use(SlzqUi)
  .use(plugins)
  .use(directives)
  .use(components)
  .mount("#engineering-app");
